/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package optativa911;

import datos.ProblemaDB;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Vivi
 */
public class GestorProblema {
    private ArrayList facturas=new ArrayList();
    

    public ArrayList getFacturas() {
        return facturas;
    }

//    public void setFacturas(ArrayList facturas) {
//        this.facturas = facturas;
//    }
//    
        public void listar() {
        try {
            ProblemaDB problemaDB = new ProblemaDB();
            setFacturas(problemaDB.listar());
            
        } catch (SQLException ex) {
            Logger.getLogger(GestorProblema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
         public ArrayList getClientes() {
        return facturas;
    }

    /**
     * @param clientes the clientes to set
     */
    public void setFacturas(ArrayList clientes) {
        this.facturas = clientes;
    }
}
